package com.gaswell.mapper;

import com.gaswell.pojo.JhRtuConfig;
import com.gaswell.pojo.ZtAlarm;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 组态图报警 Mapper 接口
 * </p>
 *
 * @author Lei Wang
 * @since 2022-05-24
 */
@Repository
public interface ZtAlarmMapper extends EasyBaseMapper<ZtAlarm> {
    @Select("select * from zt_alarm where state=1 and jh=#{jh} order by alarmtime desc")
    List<ZtAlarm> getLast(@Param("jh") String jh);
}
